{template header}
<h4 style="padding-left:10px;;">帖子打赏金额，ID为0的行为默认打赏额度 <i class="icon-search"></i></h4>
<form class="form-horizontal clearfix form-inline" method="post" action="">
    <p>添加</p>
    <div class="control-group search-group">
        <label class="control-label" >帖子ID：</label>
        <div class="controls">
          <input type="text" name="news_id" value="">
        </div>
    </div>
    <div class="control-group search-group">
        <label class="control-label" >额度列表，格式（[1,2,3]）（最少5项，最多10项）：</label>
        <div class="controls">
          <input type="text" name="pay_energy_list" value="">
        </div>
    </div>
    <div class="control-group search-group">
        <div class="controls">
            <input type="hidden" value="search" name="s">
            <button class="btn" type="submit">提交</button>
        </div>
    </div>
</form>
<div class="bs-docs-example pt-20" style="clear:both;">
    <table class="table table-striped">
        <thead>
            <tr>
                <th>帖子ID</th>
                <th>打赏额度列表</th>
                <th>操作</th>
            </tr>
        </thead>
        <tbody>
            {loop $payEnergyList $news_id $list}
            <tr>
                <td>{$news_id}</td>
                <td>{$list}</td>
                <td><a href="?c=admin&a=postPayEnergyList&delete=1&news_id={$news_id}">删除</a></td>
            </tr>
            {/loop}
        </tbody>
    </table>
</div>
{template footer}